Skip to content

fix(web): file chips in chat say what they are - #1011

Merged
badcuban merged 1 commit into
mainfrom
fix/file-reference-clarity
Nov 20, 2026
Merged

badcuban merged 1 commit into
mainfrom
fix/file-reference-clarity

Conversation

@badcuban

Copy link
Copy Markdown
Collaborator

A file name the agent only mentioned (photo.jpg, no folder) showed as a file chip. When the project didn't have it, the chip went dashed and said "Not in this project", which reads as if Threadlines knew the file was somewhere else. And real file chips looked like buttons.

Bare names are plain code. A name with no folder draws as ordinary inline code. Hovering runs the project lookup: if the file is there, the hover shows its path, a dotted underline appears, and click and right-click work as before. If not, it stays text, with no link and no hover label. A bare image name the project has still shows the picture with its chip.

A name borrows a path the message wrote. When the same message gives a file's full path (a link with a folder, an absolute path in backticks, an image path in prose) and later uses just its name, the name opens that file directly. Paths are gathered over the whole message, because chat draws each block separately, and kept stable so settled blocks don't re-render while a reply streams. Fenced blocks and paths inside longer code spans don't count. Partial paths like Model/Form.php still go through the project lookup.

File and place chips wear link blue. A blue tint behind blue text, no edge, so they read as links rather than buttons or code. A file that was looked for and is missing keeps a grey dashed outline. This also removes an underline the generic chat link rule was putting on chips.

Find in chat reads names the way they are drawn.

Checked: vp fmt, vp lint, vp run typecheck, the chatMarkdown/chatFind unit tests, and the ChatMarkdown, SubagentTranscript and ChatView.agents browser suites. Screenshots in light and dark were checked with the bundled fonts.

A file name the agent only mentions (`photo.jpg`) no longer looks like a
button. It draws as plain inline code. Hovering looks it up in the project:
found, it shows the path and opens on click; not found, it stays text. The
old dashed "Not in this project" chip claimed more than the search knew.

A bare name whose full path the same message already wrote out is that
file, so it opens it directly instead of searching the project. The paths
are gathered over the whole message, since chat draws each block on its
own. Paths in code blocks and inside longer code spans don't count, and
partial paths like `Model/Form.php` still go through the project lookup.

Real file and place chips now wear link blue: a blue tint behind blue
text, with no edge, so they read as links rather than buttons or code.
This also drops a stray underline the generic link rule put on chips.

Find in chat reads names the way they are drawn.
@vercel

vercel Bot commented Nov 20, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
threadlines Skipped Skipped Nov 20, 2026 3:18pm UTC

Request Review

@badcuban
badcuban added this pull request to the merge queue Nov 20, 2026
Merged via the queue into main with commit 07d1ed0 Nov 20, 2026
23 of 24 checks passed
@badcuban
badcuban deleted the fix/file-reference-clarity branch November 20, 2026 15:31

This branch was previously deployed

1 inactive deployment
Preview — 23f4aed0 Deployed Nov 20, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant